<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnPartybFeedbackStatusInReviewRequestNodeTable extends AbstractMigration
{
    public function up()
    {
        $this->table('review_request_node')
            ->addColumn('partyb_feedback_status', 'enum', ['values' => 'default,accept_feedback,reject_feedback', 'default' => 'default', 'null' => false, 'comment' => '反馈状态(default 默认,accept_feedback接受反馈,reject_feedback拒绝反馈)'])
            ->save();
    }

    public function down()
    {
        $this->table('review_request_node')->removeColumn('partyb_feedback_status')->save();
    }
}
